package br.diego.tb.texteditor;

public class SelectSubstring 
{
	public static void select_substring(String s, Integer p1, Integer p2) 
	{
		//LOL. I meant not using the substring() String method.

		char[] chars = s.toCharArray();
		
		for(int i = p1 - 1; i < p2; i ++)
		{
			System.out.print(chars[i]);
		}
    }
	
	public static void main(String[] args) {
		SelectSubstring.select_substring(null, null, null);
	}
}
